package com.tl.juc.c1.create;

public class CreateThreadDemo {
    public static void main(String[] args) {
        // 通过继承Thread
        MyThread myThread =  new MyThread();
        myThread.run();

        // 通过实现Runnable接口
        Thread thread = new Thread(new MyRunnable());
        thread.run();

        System.out.println("主线程");
    }
}
